<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大事件登录页面</title>
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <!-- 左上角大事件logo区域 -->
    <div class="layui-main header">
        <img src="/assets/images/logo.png" alt="">
    </div>

    <!-- 中间注册登录模块 -->
    <div class="login-register">
        <div class="box-title"></div>
        <!-- 因为是注册和登录区域===>创建两个盒子一个注册盒子 一个登录盒子 后期隐藏 -->
        <!-- 1.登录盒子 -->
        <div class="login-box">
            <!-- 通过layui布局引入form表单 -->
            <form id="loginBox" class="layui-form logAndResForm" action="">
                <!-- 1.1用户名表单 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-username"></i>
                        <input value="lpylpy" type="text" name="username" required lay-verify="required|account"
                            placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!--1.2 密码区域 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-password"></i>
                        <input value="123123" type="text" name="password" required lay-verify="required|pwd"
                            placeholder="请输入密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!--1.3登录按钮 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid layui-btn-warm layui-btn-radius" lay-submit
                            lay-filter="formDemo">登录</button>
                    </div>
                </div>
                <!-- 1.4 form中的a去注册链接 -->
                <div class="layui-form-item">
                    <!-- 先js做好切换操作 -->
                    <a href="javascript:;" class="formFont">点击去注册</a>
                </div>
            </form>
        </div>

        <!-- 2.注册盒子 -->
        <div class="register-box" style="display: none;">
            <form id="registerBox" class="layui-form logAndResForm" action="">
                <!-- 2.1用户名表单 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-username"></i>
                        <input type="text" name="username" required lay-verify="required|account" placeholder="请输入用户名"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!--2.2 密码区域 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-password"></i>
                        <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!--2.3 重复确认密码区域 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <i class="layui-icon layui-icon-password"></i>
                        <input type="text" name="repassword" required lay-verify="required|repwd" placeholder="请再次输入密码"
                            autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!--2.4登录按钮 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid layui-btn-warm layui-btn-radius" lay-submit
                            lay-filter="formDemo">点击注册</button>
                    </div>
                </div>
                <!-- 2.5 form中的a去注册链接 -->
                <div class="layui-form-item">
                    <!-- 先js做好切换操作 -->
                    <a href="javascript:;" class="formFont">点击去登录</a>
                </div>
            </form>
        </div>
    </div>

    <!-- 引入layui.js -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 引入axios -->
    <script src="/assets/lib/axios.js"></script>
    <!-- 在axios下面引入common -->
    <script src="/assets/js/common.js"></script>
    <!-- 引入jQuery -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 引入自己的js -->
    <script src="/assets/js/login.js"></script>
</body>

</html>